Replace last-command-char with last-command-event.
authorGlenn Morris <rgm@gnu.org>
Fri, 9 Jan 2009 04:23:38 +0000 (04:23 +0000)
committerGlenn Morris <rgm@gnu.org>
Fri, 9 Jan 2009 04:23:38 +0000 (04:23 +0000)
lisp/ChangeLog
lisp/eshell/em-smart.el
lisp/eshell/esh-mode.el

index 2e321a6d71aeb760a1ac7c71575acc57e97ce687..107ea86e2dbcb8786cccde5cb3b58bf805d4366b 100644 (file)
@@ -7,6 +7,7 @@
        * calc/calc-keypd.el, calc/calc-misc.el, calc/calc-prog.el:
        * calc/calc-sel.el, calc/calc-store.el, calc/calc-stuff.el:
        * calc/calc-units.el, calc/calc-yank.el, calc/calc.el:
+       * eshell/em-smart.el, eshell/esh-mode.el:
        * play/mpuz.el:
        * progmodes/ada-mode.el, progmodes/antlr-mode.el, progmodes/cc-align.el:
        * progmodes/cc-cmds.el, progmodes/cperl-mode.el, progmodes/f90.el:
index 1396cce33fea41bc44adf8a2dff39c9eb875beb2..43de7ff760c7de946917ebb80caf629bb43f8778 100644 (file)
@@ -291,7 +291,7 @@ and the end of the buffer are still visible."
        (setq clear t)
       (cond
        ((eq this-command 'self-insert-command)
-       (if (eq last-command-char ? )
+       (if (eq last-command-event ? )
            (if (and eshell-smart-space-goes-to-end
                     eshell-current-command)
                (if (not (pos-visible-in-window-p (point-max)))
index a929916f2326de5878535727ab1816af732a7afe..9cd7c1b047781d86e3e57b7a764f8e6932cd81ab 100644 (file)
@@ -1,7 +1,7 @@
 ;;; esh-mode.el --- user interface
 
-;; Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004,
-;;   2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
+;; Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
+;;   2008, 2009  Free Software Foundation, Inc.
 
 ;; Author: John Wiegley <johnw@gnu.org>
 
@@ -484,9 +484,9 @@ This is used by `eshell-watch-for-password-prompt'."
   (interactive "i")
   (process-send-string
    (eshell-interactive-process)
-   (char-to-string (if (symbolp last-command-char)
-                      (get last-command-char 'ascii-character)
-                    last-command-char))))
+   (char-to-string (if (symbolp last-command-event)
+                      (get last-command-event 'ascii-character)
+                    last-command-event))))
 
 (defun eshell-intercept-commands ()
   (when (and (eshell-interactive-process)